package com.example.webdemo.service;

import com.example.webdemo.model.ArticleInfo;
import com.example.webdemo.model.ImageRecord;

import java.util.List;

/**
 * @description:  图片记录接口
 * @author zp
 * @date: 2023/8/16 19:34
 */
public interface ImageRecordService {
    int deleteByPrimaryKey(Integer id);

    int insert(ImageRecord row);

    int insertSelective(ImageRecord row);

    ImageRecord selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(ImageRecord row);

    int updateByPrimaryKey(ImageRecord row);

    List<ImageRecord> selectByUserId(Integer userId);

    ImageRecord selectByImageUrlAndUser(String imageNameByPath, Integer id);

    boolean deleteImageByType(ArticleInfo articleInfo);
}
